#include<stdio.h>
void Reverse(char* str)
{
    char* left = str;
    char* right = str + strlen(str) - 1;
    while (left < right)
    {
        char temp = *left;
        *left = *right;
        *right = temp;
        ++left;
        --right;
    }
}
int main()
{
    char ch[10000] = "abcdef";
    while (gets(ch))
    {
        Reverse(ch);
        printf("%s", ch);
        return 0;
    }
}